<template>
  <div class="fns-header-component">
    <!-- ========头部======-->
    <el-form  :inline="true" label-position="right" label-width="90px">
      <el-row>
        <el-col :span="21">

          <slot name="slot1"></slot>

          <el-form-item>
            <el-button type="primary" @click="search()" size="medium" icon="el-icon-search">查询</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
  export default {
    props: {
    },
    computed: {
    },
    watch: {
    },
    data() {
      return {
      }
    },
    methods: {
      search() {
        var search = []
        this.$emit('search', search)
      }
    }
  }
</script>

<style lang="scss">
  /*头部组件header*/
  .fns-header-component {
    .el-form--inline .el-form-item {
      margin-right: 10px !important;
    }
  }
</style>
